<template lang="html">
  <a-layout class="beautiful-views table" style="background: #f0f0f0;">
    <div class="table-img">
      <a-carousel autoplay arrows dots="false">
        <!-- <div><img src="@/assets/banner1.png" alt="banner"></div>
        <div><img src="@/assets/banner2.png" alt="banner"></div> -->

        <div
          slot="prevArrow" slot-scope="props"
          class="custom-slick-arrow"
          style="left: 10px;zIndex: 1"
        >
          <a-icon type="left-circle" />
        </div>
        <div
          slot="nextArrow" slot-scope="props"
          class="custom-slick-arrow"
          style="right: 10px"
        >
          <a-icon type="right-circle" />
        </div>
        <div class="img-wrapper" v-for="image in images">
          <img :src="`proxy/Ecp.Picture.getNoCheckView.img?pictureId=${image.FPhoto}`" :alt="image.FPhotoTitle">
          <!-- <span v-html="image.FDescription"></span> -->
        </div>
      </a-carousel>

    </div>
  </a-layout>
</template>

<script>
import {invoke} from "@/api";
export default {
  data() {
    return {
      images: []
    }
  },
  mounted() {
    this.loadData()
  },
  methods: {
    loadData() {
      invoke("api/WTM.BeautifulView.getNotCheckList",{
        pageCode: "WTM.BeautifulView.List"
      }).then((res) => {
        this.images = []
        this.images = res.records
      })
    }
  }
}
</script>

<style lang="scss">
.beautiful-views {
  .table-img {

    .ant-carousel {
      height: 370px;
      width: 750px;

      span {
        color: #FFF;
      }

      .slick-slide {
        text-align: center;
        height: 360px;
        line-height: 160px;
        background: #364d79;
        overflow: hidden;
      }

      .custom-slick-arrow {
        width: 25px;
        height: 25px;
        font-size: 25px;
        color: #fff;
        background-color: rgba(31,45,61,.11);
        opacity: 0.3;
      }

      .custom-slick-arrow:before {
        display: none;
      }

      .custom-slick-arrow:hover {
        opacity: 0.5;
      }

      .slick-slide  h3 {
        color: #fff;
      }
    }
  }

}
</style>
